package com.atguigu.scala.chapter11

import scala.beans.BeanProperty

/**
 * @author lizikuan
 * @date 2021/5/25 20:22
 */
object $02_GenericClass {
  class Person[T,U](@BeanProperty val name:T,@BeanProperty val age:U)

  def main(args: Array[String]): Unit = {
    val p = new Person[String, Int]("zhangsan", 20)
    println(p.getName)
    println(p.age)
  }
}
